from functools import reduce


def add(x, y) -> int:
    print("x=", x, "y=", y)
    return x + y


nums = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]

sum = reduce(add, nums)

print("sum=", sum)
